import request from '@/utils/request'

export default {
  getIndexNavbarData(category, pageIndex, pageSize) {
    return request({
      url: `/post`,
      method: 'get',
      params: {
        category,
        pageIndex,
        pageSize
      }
    })
  },
  getCategoryData(){
    return request({
      url: '/category',
      method: 'get'
    })
  }
}
